<?php

namespace App\Models;



class BalanceLog extends ApiBaseModel
{

    protected $table = 'balance_log';
    protected $fillable = [
        'order_sn',
        'money',
        'bf_balance',
        'af_balance',
        'bank',
        'type',
        'remark',
        'user_id',
        'create_by',
        'update_by',
    ];
    protected $casts = [
        'type' => 'string',
    ];

    public function user(){
        return $this->belongsTo(SysUser::class,'user_id','id');
    }

}
